Skip to content

feat(uiView): add autoscroll option #714

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

feat(uiView): add autoscroll option #714

wants to merge 1 commit into from

Conversation

dlukez
Copy link
Contributor

@dlukez dlukez commented Dec 23, 2013

Just like ngView: https://github.com/angular/angular.js/blob/master/src/ngRoute/directive/ngView.js#L214
Went a bit wild with the unit tests, probably unnecessary, happy to take them out if you prefer.

Closes #697

@timkindberg
Copy link
Contributor

Sweet! The tests check that $anchorScroll is called, but are we sure it will fix the scrolling problem visually?

Also got some linting issues:

Linting src/viewDirective.js ...ERROR
[L126:C13] W014: Bad line breaking before '&&'.
&& (!autoScrollExp || scope.$eval(autoScrollExp))) {

Linting build/angular-ui-router.js ...ERROR
[L2217:C13] W014: Bad line breaking before '&&'.
&& (!autoScrollExp || scope.$eval(autoScrollExp))) {

@dlukez
Copy link
Contributor Author

dlukez commented Dec 24, 2013

I won't fix those linting problems because it is probably easier to take #715

@nateabele
Copy link
Contributor

Okay, closing this to continue discussion on #715.

@nateabele nateabele closed this Dec 24, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Page jumps to top on state change
3 participants